{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8f1f5853",
   "metadata": {},
   "outputs": [],
   "source": [
    "T(K)=t(℃)+273.15  #有关绝对温标的公式 "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c80e8dd9",
   "metadata": {},
   "outputs": [],
   "source": [
    "celsius =float(input(\"请输入摄氏温度:\"))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "a7450682",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "16f75862",
   "metadata": {},
   "outputs": [],
   "source": [
    "T(K)=t(℃)+273.15  #有关绝对温标的公式  同上"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "069039d0",
   "metadata": {},
   "outputs": [],
   "source": [
    "celsius =float(input(\"请输入摄氏温度:\"))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "cd4dfef8",
   "metadata": {},
   "outputs": [],
   "source": [
    "kelvin=celsius + 273.15   #开尔文 = 摄氏温度+273.15"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "75f5b6af",
   "metadata": {},
   "outputs": [],
   "source": [
    "print(celsius,\"它相对应的开尔文为：\",kelvin)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
